<template>
  <div id="app">
    <router-link to="/EmpPage">EmpPage</router-link>
    <router-link to="/InserEmp">InserEmp</router-link>
    <router-link to="/LoginEmp">LoginEmp</router-link>
    <!--    <router-link to="/UpdateEmp" ></router-link>-->
    <button @click="update">修改</button>
    <router-view/>
    <input type="text" v-model="eno">
  </div>
</template>

<script>

  export default {
    name: 'App',
    components: {},
    data() {
      return {
        eno: 1001
      }
    },
    methods: {
      update() {
        this.$router.push({
          name: "UpdateEmp",
          params: {
            eno: this.eno
          }
        })
      }
    }
  }
</script>

<style>
  #app {
    font-family: 'Avenir', Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-align: center;
    color: #2c3e50;
    margin-top: 60px;
  }
</style>
